package org.ycx.doc.dao.model;

import java.io.Serializable;
import java.util.Date;
import org.ycx.common.annotation.FormDesc;

@FormDesc(pk="paramId")
public class DocParams implements Serializable {
    /** 编号 */
    @FormDesc(name="编号",maxLength=10,type=1)
    private Integer paramId;

    /** 模块编号 */
    @FormDesc(name="模块编号",maxLength=10,type=1)
    private Integer moduleId;

    /** 参数名称 */
    @FormDesc(name="参数名称",maxLength=200,type=0)
    private String paramName;

    /** 参数位置 */
    @FormDesc(name="参数位置",maxLength=10,type=1)
    private Integer reqPosition;

    /** 参数描述 */
    @FormDesc(name="参数描述",maxLength=500,type=0)
    private String paramDesc;

    /** 请求/返回 */
    @FormDesc(name="请求/返回",maxLength=10,type=1)
    private Integer reqResp;

    /** 参数类型 */
    @FormDesc(name="参数类型",maxLength=10,type=1)
    private Integer paramTypes;

    /** 备注 */
    @FormDesc(name="备注",maxLength=200,type=0)
    private String paramNotes;

    /** mock数据 */
    @FormDesc(name="mock数据",maxLength=300,type=0)
    private String paramMock;

    /** 版本号 */
    @FormDesc(name="版本号",maxLength=10,type=1)
    private Integer paramVersion;

    /** 创建时间 */
    @FormDesc(name="创建时间",maxLength=10,type=3)
    private Date createTs;

    /** 创建人 */
    @FormDesc(name="创建人",maxLength=10,type=1)
    private Integer createUid;

    /** 更新时间 */
    @FormDesc(name="更新时间",maxLength=10,type=3)
    private Date updateTs;

    /** 更新人 */
    @FormDesc(name="更新人",maxLength=10,type=1)
    private Integer updateUid;

    /** 状态 */
    @FormDesc(name="状态",maxLength=10,type=1)
    private Integer states;

    /** 公共报文 */
    @FormDesc(name="公共报文",maxLength=10,type=1)
    private Integer pid;

    private static final long serialVersionUID = 1L;

    public Integer getParamId() {
        return paramId;
    }

    public void setParamId(Integer paramId) {
        this.paramId = paramId;
    }

    public Integer getModuleId() {
        return moduleId;
    }

    public void setModuleId(Integer moduleId) {
        this.moduleId = moduleId;
    }

    public String getParamName() {
        return paramName;
    }

    public void setParamName(String paramName) {
        this.paramName = paramName;
    }

    public Integer getReqPosition() {
        return reqPosition;
    }

    public void setReqPosition(Integer reqPosition) {
        this.reqPosition = reqPosition;
    }

    public String getParamDesc() {
        return paramDesc;
    }

    public void setParamDesc(String paramDesc) {
        this.paramDesc = paramDesc;
    }

    public Integer getReqResp() {
        return reqResp;
    }

    public void setReqResp(Integer reqResp) {
        this.reqResp = reqResp;
    }

    public Integer getParamTypes() {
        return paramTypes;
    }

    public void setParamTypes(Integer paramTypes) {
        this.paramTypes = paramTypes;
    }

    public String getParamNotes() {
        return paramNotes;
    }

    public void setParamNotes(String paramNotes) {
        this.paramNotes = paramNotes;
    }

    public String getParamMock() {
        return paramMock;
    }

    public void setParamMock(String paramMock) {
        this.paramMock = paramMock;
    }

    public Integer getParamVersion() {
        return paramVersion;
    }

    public void setParamVersion(Integer paramVersion) {
        this.paramVersion = paramVersion;
    }

    public Date getCreateTs() {
        return createTs;
    }

    public void setCreateTs(Date createTs) {
        this.createTs = createTs;
    }

    public Integer getCreateUid() {
        return createUid;
    }

    public void setCreateUid(Integer createUid) {
        this.createUid = createUid;
    }

    public Date getUpdateTs() {
        return updateTs;
    }

    public void setUpdateTs(Date updateTs) {
        this.updateTs = updateTs;
    }

    public Integer getUpdateUid() {
        return updateUid;
    }

    public void setUpdateUid(Integer updateUid) {
        this.updateUid = updateUid;
    }

    public Integer getStates() {
        return states;
    }

    public void setStates(Integer states) {
        this.states = states;
    }

    public Integer getPid() {
        return pid;
    }

    public void setPid(Integer pid) {
        this.pid = pid;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", paramId=").append(paramId);
        sb.append(", moduleId=").append(moduleId);
        sb.append(", paramName=").append(paramName);
        sb.append(", reqPosition=").append(reqPosition);
        sb.append(", paramDesc=").append(paramDesc);
        sb.append(", reqResp=").append(reqResp);
        sb.append(", paramTypes=").append(paramTypes);
        sb.append(", paramNotes=").append(paramNotes);
        sb.append(", paramMock=").append(paramMock);
        sb.append(", paramVersion=").append(paramVersion);
        sb.append(", createTs=").append(createTs);
        sb.append(", createUid=").append(createUid);
        sb.append(", updateTs=").append(updateTs);
        sb.append(", updateUid=").append(updateUid);
        sb.append(", states=").append(states);
        sb.append(", pid=").append(pid);
        sb.append("]");
        return sb.toString();
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        DocParams other = (DocParams) that;
        return (this.getParamId() == null ? other.getParamId() == null : this.getParamId().equals(other.getParamId()))
            && (this.getModuleId() == null ? other.getModuleId() == null : this.getModuleId().equals(other.getModuleId()))
            && (this.getParamName() == null ? other.getParamName() == null : this.getParamName().equals(other.getParamName()))
            && (this.getReqPosition() == null ? other.getReqPosition() == null : this.getReqPosition().equals(other.getReqPosition()))
            && (this.getParamDesc() == null ? other.getParamDesc() == null : this.getParamDesc().equals(other.getParamDesc()))
            && (this.getReqResp() == null ? other.getReqResp() == null : this.getReqResp().equals(other.getReqResp()))
            && (this.getParamTypes() == null ? other.getParamTypes() == null : this.getParamTypes().equals(other.getParamTypes()))
            && (this.getParamNotes() == null ? other.getParamNotes() == null : this.getParamNotes().equals(other.getParamNotes()))
            && (this.getParamMock() == null ? other.getParamMock() == null : this.getParamMock().equals(other.getParamMock()))
            && (this.getParamVersion() == null ? other.getParamVersion() == null : this.getParamVersion().equals(other.getParamVersion()))
            && (this.getCreateTs() == null ? other.getCreateTs() == null : this.getCreateTs().equals(other.getCreateTs()))
            && (this.getCreateUid() == null ? other.getCreateUid() == null : this.getCreateUid().equals(other.getCreateUid()))
            && (this.getUpdateTs() == null ? other.getUpdateTs() == null : this.getUpdateTs().equals(other.getUpdateTs()))
            && (this.getUpdateUid() == null ? other.getUpdateUid() == null : this.getUpdateUid().equals(other.getUpdateUid()))
            && (this.getStates() == null ? other.getStates() == null : this.getStates().equals(other.getStates()))
            && (this.getPid() == null ? other.getPid() == null : this.getPid().equals(other.getPid()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getParamId() == null) ? 0 : getParamId().hashCode());
        result = prime * result + ((getModuleId() == null) ? 0 : getModuleId().hashCode());
        result = prime * result + ((getParamName() == null) ? 0 : getParamName().hashCode());
        result = prime * result + ((getReqPosition() == null) ? 0 : getReqPosition().hashCode());
        result = prime * result + ((getParamDesc() == null) ? 0 : getParamDesc().hashCode());
        result = prime * result + ((getReqResp() == null) ? 0 : getReqResp().hashCode());
        result = prime * result + ((getParamTypes() == null) ? 0 : getParamTypes().hashCode());
        result = prime * result + ((getParamNotes() == null) ? 0 : getParamNotes().hashCode());
        result = prime * result + ((getParamMock() == null) ? 0 : getParamMock().hashCode());
        result = prime * result + ((getParamVersion() == null) ? 0 : getParamVersion().hashCode());
        result = prime * result + ((getCreateTs() == null) ? 0 : getCreateTs().hashCode());
        result = prime * result + ((getCreateUid() == null) ? 0 : getCreateUid().hashCode());
        result = prime * result + ((getUpdateTs() == null) ? 0 : getUpdateTs().hashCode());
        result = prime * result + ((getUpdateUid() == null) ? 0 : getUpdateUid().hashCode());
        result = prime * result + ((getStates() == null) ? 0 : getStates().hashCode());
        result = prime * result + ((getPid() == null) ? 0 : getPid().hashCode());
        return result;
    }
}